home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / program / tsetguid.zip / TEA / SET / SAMPLE / FOLDERCA.JAV < prev    next >
Text File  |  1997-02-27  |  2KB  |  56 lines

  1. /*
  2.  * Copyright (c) 1996-1997, InetSoft Technology Corp, All Rights Reserved.
  3.  *
  4.  * The software and information contained herein are copyrighted and 
  5.  * proprietary to InetSoft Technology Corp. This software is furnished 
  6.  * pursuant to a written license agreement and may be used, copied, 
  7.  * transmitted, and stored only in accordance with the terms of such 
  8.  * license and with the inclusion of the above copyright notice. Please 
  9.  * refer to the file "COPYRIGHT" for further copyright and licensing 
  10.  * information. This software and information or any other copies 
  11.  * thereof may not be provided or otherwise made available to any 
  12.  * other person. 
  13.  */
  14. package tea.set.sample;
  15.  
  16. import java.applet.*;
  17. import java.awt.*;
  18. import tea.set.*;
  19.  
  20. /**
  21.  * This is a demo applet to show using tea.set.Folder to build a 
  22.  * simple calendar.
  23.  *
  24.  * @see Folder
  25.  * @see YearCal
  26.  * @see MCalendar
  27.  * @version 1.3, 01/31/97
  28.  * @author InetSoft Technology Corp
  29.  */
  30. public class FolderCal extends Applet {
  31.    public void init() {
  32.       setLayout(new BorderLayout());
  33.       
  34.       folder = new Folder();
  35.       folder.setBorder(new Insets(4, 4, 4, 4));
  36.       
  37.       YearCal cal;
  38.       
  39.       cal = new YearCal(96, 0, 96, 2, 1, 3);
  40.       folder.add(new Effect3D(cal, Effect3D.RAISED_BORDER), "1st Quarter");
  41.       
  42.       cal = new YearCal(96, 3, 96, 5, 1, 3);
  43.       folder.add(new Effect3D(cal, Effect3D.RAISED_BORDER), "2nd Quarter");
  44.       
  45.       cal = new YearCal(96, 6, 96, 8, 1, 3);
  46.       folder.add(new Effect3D(cal, Effect3D.RAISED_BORDER), "3rd Quarter");
  47.       
  48.       cal = new YearCal(96, 9, 96, 11, 1, 3);
  49.       folder.add(new Effect3D(cal, Effect3D.RAISED_BORDER), "4th Quarter");
  50.       
  51.       add("Center", folder);
  52.    }
  53.    
  54.    private Folder folder;
  55. }
  56.